// 共通样式
@import './mixin.scss';
@import './btn.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './iconFont.scss';
// @import './element-variables.scss';

body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: "Microsoft YaHei", "微软雅黑";
  font-size: 12px;
  // font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

code {
  background: #eef1f6;
  padding: 15px 10px;
  margin-bottom: 20px;
  display: block;
  line-height: 36px;
  a {
    color: #337ab7;
    cursor: pointer;
    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

.fade-enter-active,
.fade-leave-active {
  transition: all .2s ease
}

.fade-enter,
.fade-leave-active {
  opacity: 0;
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.editor-container .CodeMirror {
  height: 100% !important;
}

.text-center {
  text-align: center
}

.svg-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);
  .subtitle {
    font-size: 20px;
    color: #fff;
  }
  &.draft {
    background: #d0d0d0;
  }
  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;
  &:hover {
    color: rgb(32, 160, 255);
  }
}

.publishedTag,
.draftTag,
.deletedTag {
  color: #fff;
  background-color: $panGreen;
  line-height: 1;
  text-align: center;
  margin: 0;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 4px;
  position: absolute;
  left: 20px;
  top: 10px;
}

.draftTag {
  background-color: $yellow;
}

.deletedTag {
  background-color: $red;
}

.input-label {
  font-size: 14px;
  color: #48576a;
  line-height: 1;
  padding: 11px 5px 11px 0;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

.no-marginLeft {
  .el-checkbox {
    margin: 0 20px 15px 0;
  }
  .el-checkbox + .el-checkbox {
    margin-left: 0px;
  }
}

.filter-container {
  // padding-bottom: 10px;
  .filter-item {
    display: inline-block;
    vertical-align: middle;
    // margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

//refine simplemde
.simplemde-container {
  .editor-toolbar.fullscreen,
  .CodeMirror-fullscreen {
    z-index: 1003;
  }
}

//暂时性解决diolag 问题 https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

//github-corner
.github-corner:hover .octo-arm {
  animation: octocat-wave 560ms ease-in-out
}

@keyframes octocat-wave {
  0%,
  100% {
    transform: rotate(0)
  }
  20%,
  60% {
    transform: rotate(-25deg)
  }
  40%,
  80% {
    transform: rotate(10deg)
  }
}

@media (max-width: 500px) {
  .github-corner:hover .octo-arm {
    animation: none
  }
  .github-corner .octo-arm {
    animation: octocat-wave 560ms ease-in-out
  }
}

.common-table-header {
  background-color: #D2E1FF;
  color: #5c6682;
  border: 1px solid #c6daff;
}
.common-table-cell {
  border: 1px solid #c6daff;
}
.tableTop {
  margin-bottom: 8px
}
.crm-container {
  background-color: rgb(243, 243, 244)
}
.crm-header {
  background-color: rgba(255, 255, 255, 1);
  font-size: 15px;
  font-family: Roboto;
  font-weight: bold;
  // color: #4379e8;
  line-height: 42px;
  height: 46px !important;
  padding: 0 17px 0 17px;
}
.crm-main {
  background: #fff;
  // border-radius: 6px;
  padding: 15px;
  box-shadow: 1px 1px 3px rgba(0,0,0,.2);
  color: #333333;
  height: auto !important;
  .el-row {
    margin-bottom: 0px;
  }
}
.crm-footer {
  background: #fff;
  border-radius: 6px;
  /*margin: 10px;*/
  margin-top: 0px;
  padding: 10px 15px 13px !important;
  box-shadow: 1px 1px 3px rgba(0,0,0,.2);
  color: #333333;
  height: auto !important;
}

// 将input的高度设小
.searchForm .el-input__inner {
  min-height: 35px!important;
  line-height: 35px;
}

.file-drawer .el-drawer__header {
  margin-bottom: 10px;
  background: rgb(248, 248, 248);
}
.file-drawer .el-drawer__body {
  width: 100%;
  margin: 0 auto;
  overflow-y: auto;
}

// 超出文件内容显示
.el-tooltip__popper {
  max-width: 90%;
}
.iconwenhao:before {
  color: #f56c6c;
}
.iconyichang:before {
  color: #ffbe4e;
}
.iconmore:before {
  color: #a0a7ba;
}

// 通讯文档下载
.iDownload {
  color: #409EFF
}
.iDownload:hover {
  color: #409EFF;
  text-decoration: underline;
}